package com.ponhu.ea2.stockcenter.provider.service.entity;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ponhu.ea2.stockcenter.dto.WMSEventInfoDTO;
import com.ponhu.ea2.stockcenter.enums.ExchangeActionTypeEnum;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseChange;
import com.ponhu.ea2.stockcenter.provider.entity.StockWarehouseRelation;

import java.util.List;

/**
 * 仓库库存变动记录表服务类
 */
public interface StockWarehouseChangeService extends IService<StockWarehouseChange> {

    /**
     * 批量保存仓库库存变动记录
     *
     * @param stockWarehouseRelations
     * @param eventInfoDTO
     * @return
     */
    List<StockWarehouseChange> saveBatchChanges(List<StockWarehouseRelation> stockWarehouseRelations,
                                                WMSEventInfoDTO eventInfoDTO);

    /**
     * 根据调拨单号和动作类型查询调拨记录
     *
     * @return
     */
    List<StockWarehouseChange> getStockWarehouseChanges(String directSn,
                                                        List<ExchangeActionTypeEnum> actionTypeEnums);

}
